using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class Oprtion : MonoBehaviour, IPointerClickHandler, IPointerEnterHandler, IPointerExitHandler
{

    public int id = 0;
    public Text text;
    public OptionClass option;
    public string str;
    public int cost=0;
    public int baoshi;
    public void OnPointerClick(PointerEventData eventData)
    {
        ToolTipSystem.Hide();
        
       
    }

    public void OnPointerEnter(PointerEventData eventData)
    {
      
            ToolTipSystem.instance.setString(id.ToString(), str);
            Debug.Log(str);
        ToolTipSystem.show();
            
     
        
    }

    public void OnPointerExit(PointerEventData eventData)
    {
        if (str != "")
            ToolTipSystem.Hide();
    }

   
   
}
